/*
 * StatusBarPanel.java
 *
 * Created on 5 juni 2008, 2:22
 */

package com.laamella.syntherface.shell;

import com.laamella.syntherface.synths.events.EventListener;
import com.laamella.syntherface.synths.events.SynthWideEvents;

/**
 *
 * @author  danny
 */
@SuppressWarnings("serial") public class StatusBarPanel extends javax.swing.JPanel {

    /** Creates new form StatusBarPanel */
    public StatusBarPanel() {
        initComponents();
		SynthWideEvents.statusUpdate().listeners.add(new EventListener<String>() {
			@Override public void onEvent(String event) {
				jLabel1.setText(event);
			}
		});

    }

    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
     */
    @SuppressWarnings("unchecked")
    // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
    private void initComponents() {

        jLabel1 = new javax.swing.JLabel();

        setBorder(javax.swing.BorderFactory.createBevelBorder(javax.swing.border.BevelBorder.LOWERED));
        setPreferredSize(new java.awt.Dimension(0, 16));
        setLayout(new java.awt.BorderLayout());
        add(jLabel1, java.awt.BorderLayout.CENTER);
    }// </editor-fold>//GEN-END:initComponents


    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JLabel jLabel1;
    // End of variables declaration//GEN-END:variables

}
